<?php
namespace app\common\validate;

use think\Validate;

class ConfigValidate extends Validate
{
    // 验证规则
    protected $rule = [
        'name|配置英文标识'  => 'require',
        'value|配置值'    => 'require',
        'title|配置中文标识' => 'require',
    ];
    //验证场景
    protected $scene = [
        'add' => ['name', 'value', 'title'],
    ];
}